<template>
  <div class="m-enterprise-bind">
    <div class="enterprise-bind-top">
      <div class="enterprise-bind-title">扬程互联邀请您加入</div>
      <div class="enterprise-bind-welcome">欢迎加入我们这个大家庭</div>
    </div>
    <div class="enterprise-bind-form">
      <van-form @submit="onSubmit">
        <div class="form-group">
          <van-field
              name="姓名"
              label="姓名"
              v-model="form.username"
              placeholder="请输入姓名"
              :rules="[{ 'required':true }]"
            />
        </div>
        <div class="form-group">
          <van-field
              name="手机号码"
              label="手机号码"
              v-model="form.mobile"
              placeholder="请输入手机号码"
              :rules="[{ 'required':true }]"
            />
        </div>
        <div class="form-footer">
          <van-button round block type="info" :disabled="form.username ? false : true"  native-type="submit">提交</van-button>
        </div>
      </van-form>
    </div>
  </div>
</template>

<script>
  import { Button, Toast } from 'vant'
  export default {
    name: 'Enterprise',
    components: {
      Button,
      Toast,
    },
    data() {
      return {
        form: {

        }
      }
    },
    created() {

    },
    methods: {
      onSubmit(values) {
        console.log('submit', values);
      }
    }
  }
</script>

<style lang="scss" scoped="scoped">
  .m-enterprise-bind {
    .enterprise-bind-top {
      background: url(../../assets/images/enterprise/join_bg.png) no-repeat;
      height: 306px;
      background-size: 100%;
      .enterprise-bind-title {
        font-size: 48px;
        font-weight: bold;
        color: #FFFFFF;
        padding: 103px 0px 30px 36px;
      }
      .enterprise-bind-welcome {
        font-size: 26px;
        font-weight: 400;
        color: #BCCFF9;
        padding-left: 36px;
      }
    }
    .enterprise-bind-form {
      width: 678px;
      margin: 94px auto;
      .form-group{
        border-bottom:1px solid #EDEDED;
      }
      .form-footer {
        margin-top: 94px;
      }
    }
  }
</style>
